#include "mainmodeltest.h"

bool MainModelTest::run() {
    short count=0;

    if (!RealNumberTest::run())
        std::cout << "ERROR " << ++count << " RealNumberTest::run() faild!" << std::endl;
    if (!LinkedListTest::run())
        std::cout << "ERROR " << ++count << " LinkedListTest::run() faild!" << std::endl;
    if (!LinkedListElementTest::run())
        std::cout << "ERROR " << ++count << " LinkedListElementTest::run() faild!" << std::endl;
    if (!FormulaTest::run())
        std::cout << "ERROR " << ++count << " FormulaTest::run() faild!" << std::endl;
    if (!DoubleToStringTest::run())
        std::cout << "ERROR " << ++count << " DoubleToStringTest::run() faild!" << std::endl;
    if (!FormulaFactoryTest::run())
        std::cout << "ERROR " << ++count << " FormulaFactoryTest::run() faild!" << std::endl;
    if (!StackTest::run())
        std::cout << "ERROR " << ++count << " StackTest::run() faild!" << std::endl;
    if (!RealOperationsTest::run())
        std::cout << "ERROR " << ++count << " RealOperationsTest::run() faild!" << std::endl;
    if (!InputTest::run())
        std::cout << "ERROR " << ++count << " InputTest::run() faild!" << std::endl;
    if (!RealValueCheckTest::run())
        std::cout << "ERROR " << ++count << " RealValueCheckTest::run() faild!" << std::endl;
    if (!EvolutionElementTest::run())
        std::cout << "ERROR " << ++count << " EvolutionElementTest::run() faild!" << std::endl;
    if (!EvolutionTest::run())
        std::cout << "ERROR " << ++count << " EvolutionTest::run() faild!" << std::endl;

    return count==0;
}
